// $Id$
function boot() {
  writeMessage('booting the substrate...');
  index('http://www.google.com');
};

function index(iri) {
  new Ajax.Request
    (iri,
     { method : 'get', 
       onLoading : writeMessage('on-loading'), 
       onComplete : writeMessage('completed') });
};

function replaceRemote(xml) {
  writeMessage('success');
  writeMessage(xml);
  writeMessage(xml.getallresponseheaders);
  writeMessage(xml.responsetext);
  writeMessage(xml.responsexml);
};

function writeMessage(message) {
  var boot = document.createElement('pre');
  document.body.appendChild(boot);
  Element.update(boot, message);
};

function foo() {
  alert('foo');
};

